<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo02-define-change-proto</title>
</head>
<script>
    // 'use strict';
    function fun(){
        this.name11 = 'hhh'; 

        // return this;  
    }

    console.log(fun.prototype);

    /* new 函数，默认返回this */
    let a = new fun();
    // console.log(a);
    // console.log(a.name11); 

    fun.prototype.arr11 = ['1','2','3'];

    console.log(a.arr11);


</script>
<body>
    
</body>
</html>